package com.frank.oj.service.entity.common;

import com.baomidou.mybatisplus.extension.service.IService;
import com.frank.model.entity.common.File;
import com.frank.oj.model.vo.ACMContestRankVO;
import com.frank.oj.model.vo.OIContestRankVO;

import java.util.List;

/**
 * @author frank
 * @Date 2024/1/25
 */
public interface FileEntityService extends IService<File> {
    List<File> queryCarouselFileList();

    void updateFileToDeleteByUidAndType(String uid, String avatar);

    List<List<String>> getContestRankExcelHead(List<String> contestProblemDisplayIDList, boolean isACM);

    List<List<Object>> changeACMContestRankToExcelRowList(List<ACMContestRankVO> acmContestRankVOList, List<String> contestProblemDisplayIDList, String rankShowName);

    List<List<Object>> changOIContestRankToExcelRowList(List<OIContestRankVO> oiContestRankVOList, List<String> contestProblemDisplayIDList, String rankShowName);

    void updateFileToDeleteByGidAndType(Long gid, String avatar);
}
